#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>


void print_usage(char *name)
{
	printf("Usage:\n\r");
	printf("%s <dev>", name);
}

int main(int argc, char **argv)
{
	int fd;

	if(argc != 2)
	{
		print_usage(argv[0]);
	}

	fd = open(argv[1], O_RDWR);
	if(fd < 0)
	{
		printf("Can't open\n\r");
	}
	else
	{
		printf("Can open\n\r");
	}
	return 0;
}


